﻿<Window x:Class="Kouakos.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        ResizeMode="NoResize"
        Title="{Binding Title}" Height="350" Width="525">
    <Grid>
        <StackPanel>
            <StackPanel Orientation="Horizontal" Height="60">
                <Label  Content="{Binding Name}"
                        FontFamily="Segoe WP SemiLight" Foreground="DarkSlateGray" FontSize="45"
                        VerticalAlignment="Bottom" Padding="0,3"/>
                <Label  Content="{Binding SubName}"
                        FontFamily="Segoe WP SemiLight" Foreground="DarkSlateGray" FontSize="15"
                        VerticalAlignment="Bottom" />
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <TextBox Width="340" IsReadOnly="True" Text="{Binding Path}" />
                <Button Command="{Binding SelectFile}" IsEnabled="{Binding Init}">Select File...</Button>
                <Button Command="{Binding SelectDir}" IsEnabled="{Binding Init}">Select Directory...</Button>
            </StackPanel>
            <Button Height="50" Command="{Binding Launch}" IsEnabled="{Binding Init}"> Share !</Button>
            <!--<Button Height="50" Command="{Binding StopServer}" IsEnabled="{Binding Run}"> STop...</Button>-->
        </StackPanel>
        
        <StackPanel VerticalAlignment="Bottom">
            <StackPanel Orientation="Horizontal">
                <Label>IP Publique :</Label>
                <Label Content="{Binding PublicIP}" />
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <Label>IP Locale :</Label>
                <Label Content="{Binding LocalIP}" />
            </StackPanel>
        </StackPanel>
    </Grid>
</Window>
